<?php
require('config.php');

        $user_id=$_REQUEST['user_id'];
		$sql="select * from `".$oto."_users` where `userId`='{$user_id}' LIMIT 1";
		$result=$db->query($sql);
		while($row=$result->fetch_assoc()){
			$user_info[]=$row;//将取得的所有数据赋值给person_info数组
		}
		$sql="select * from `".$oto."_sys_configs` where `fieldCode`='applyMin' LIMIT 1";
		$result=$db->query($sql);
		while($row=$result->fetch_assoc()){
			$sys[]=$row;//将取得的所有数据赋值给person_info数组
		}
		$agent_info[0]['userMoney']=$user_info[0]['userMoney'];
		if(!isset($sys))
		{
			$agent_info[0]['min']=0;
		}
		else
		{
			$agent_info[0]['min']=$sys[0]['fieldValue'];
		}
		echo json_encode($agent_info);
?>